import request from '@/utils/request'

//查询制版管理列表
export function getPlatemakingList(params) {
    return request({
        url: '/mes/platemaking/list',
        method: 'get',
        params,
    })
}
// 新增
export function addPlatemaking(data) {
    return request({
        url: '/mes/platemaking',
        method: 'post',
        data,
    })
}
// 修改
export function editPlatemaking(data) {
    return request({
        url: '/mes/platemaking',
        method: 'put',
        data,
    })
}
// 详细信息
export function getPlatemakingInfo(id, params) {
    return request({
        url: `/mes/platemaking/${id}`,
        method: 'get',
        params,
    })
}
// 删除
export function delPlatemakingInfo(id) {
    return request({
        url: `/mes/platemaking/${id}`,
        method: 'DELETE',
    })
}

// 导出
export function exportPlatemakingList(data) {
    return request({
        url: `/mes/platemaking/export`,
        method: 'post',
        data,
        responseType: 'blob',
    })
}

// 明细查询
export function getPlatemakingDetaillist(data) {
    return request({
        url: `/mes/platemaking/DetailList`,
        method: 'post',
        data,
    })
}

//  生产单查状态 2 3
export function getProducestatelist(data) {
    return request({
        url: '/produce/getProduceStatelist',
        method: 'post',
        data,
    })
}
//  生产单查状态 2 3 细表
export function getProduct(data) {
    return request({
        url: '/produce/getProduct',
        method: 'post',
        data,
    })
}

// 制版明细导出
export function exportList(data) {
    return request({
        url: '/mes/platemaking/detailexport',
        responseType: 'blob',
        method: 'post',
        data,
    })
}
